/*
 * Copyright 2020-2025 the original author or authors.
 * You cannot use this file unless authorized by the author.
 */
package org.ipig.data.rdbms;

import org.ipig.constants.FieldCnst;

import javax.persistence.Column;

/**
 * 标准基础Entity
 *
 * @author <a href="mailto:comchnts@163.com">chinats</a>
 * @version $$Id: BaseEntity.java 3 2020-01-21 09:36:33Z ts <comchnts@163.com> $$
 * @since 1.0
 */
public class BaseEntity {
    /**
     * 主键
     */
    @Column(name = FieldCnst.ID)
    protected String id;
    /**
     * 版本
     */
    @Column(name = FieldCnst.VERSION)
    protected Long version;

    /**
     * deletedFlag
     */
    @Column(name = FieldCnst.DELETED_FLAG)
    protected String deletedFlag;

    /**
     * modifyTime
     */
    @Column(name = FieldCnst.MODIFY_TIME)
    protected String modifyTime;

    /**
     * createTime
     */
    @Column(name = FieldCnst.CREATE_TIME)
    private String createTime;

    /**
     * creatorId
     */
    @Column(name = FieldCnst.CREATOR_ID)
    protected String creatorId;

    /**
     * modifierId
     */
    @Column(name = FieldCnst.MODIFIER_ID)
    protected String modifierId;
}
